<%@page import="com.mysql.fabric.xmlrpc.base.Data"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ page import="fy.bean.*,java.util.*,java.io.*" %>  
<%
request.setCharacterEncoding("utf-8");
String category = request.getParameter("category");
String title = request.getParameter("title");
String content = request.getParameter("content");
String author = request.getParameter("author");
String phone = request.getParameter("phone");
String email = request.getParameter("email");
String txtDate = request.getParameter("txtDate");
System.out.print("doadd.jsp : +category :"+category 
		  +" author :"+author+" title :"+title+" phone:"+phone+" email:"+email);
System.out.println(" content:" + content);
Zxhd zxhd = new Zxhd();

if(zxhd.doAdd(category,title,content,author,phone,email,txtDate)){
	response.sendRedirect("yzxx.jsp");
}else{
	response.setCharacterEncoding("utf-8");
	PrintWriter pout = response.getWriter();
	pout.print("<script>alert('上传失败'); </script>");
	pout.flush();
	pout.close();
	//response.sendRedirect("login.html");
};

%>    
